home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / bbox22.zip / GENERIC.BAT < prev    next >
DOS Batch File  |  1991-11-20  |  1KB  |  53 lines

  1. rem This menu will work with any BATBOX menu file.  However, you must
  2. rem create a separate batch file for each menu choice, which contains
  3. rem the commands to be executed when that menu item is chosen.  These
  4. rem batch files must be named 1.BAT (for menu item 1), 2.BAT, (for menu
  5. rem item 2), and so on, up to 9.BAT for item 9.  Don't forget to include
  6. rem a QUIT option.
  7. echo off
  8. :begin
  9. batbox        /o
  10. rem     substitute the name of your menu file here.  Don't forget to include
  11. rem the /o switch.
  12. if errorlevel 10 goto TEN
  13. if errorlevel 9 goto NINE
  14. if errorlevel 8 goto EIGHT
  15. if errorlevel 7 goto SEVEN
  16. if errorlevel 6 goto SIX
  17. if errorlevel 5 goto FIVE
  18. if errorlevel 4 goto FOUR
  19. if errorlevel 3 goto THREE
  20. if errorlevel 2 goto TWO
  21. :ONE
  22. call 1.bat
  23. rem  use COMMAND /C 1.BAT (and so on) for DOS versions prior to 3.3
  24. goto begin
  25. :TWO
  26. call 2.bat
  27. goto begin
  28. :THREE
  29. call 3.bat
  30. goto begin
  31. :FOUR
  32. call 4.bat
  33. goto begin
  34. :FIVE  
  35. call 5.bat
  36. goto begin
  37. :SIX
  38. call 6.bat
  39. goto begin
  40. :SEVEN
  41. call 7.bat
  42. goto begin
  43. :EIGHT
  44. call 8.bat
  45. goto begin
  46. :NINE
  47. call 9.bat
  48. goto begin
  49. :TEN
  50. rem Batch file ends here and returns you to DOS (assumes item 10 is QUIT).
  51.  
  52.  
  53.